import request from '@/utils/HttpRequest'

export default {

    //添加心愿单信息
    addMemberWish(entity) {
        return request({
            url: '/gmmallmember/memberwish/addWish',
            method: 'post',
            data: entity
        })
    },

    //删除心愿单信息
    deleteGameWishById(id) {
        return request({
            url: '/gmmallmember/memberwish/deleteWish/' + id,
            method: 'delete'
        })
    },

    //删除心愿单信息
    deleteGameWish(gameId, memberId) {
        return request({
            url: '/gmmallmember/memberwish/deleteWish/' + gameId + '/' + memberId,
            method: 'delete'
        })
    },

    //获取用户的心愿单游戏列表信息
    getWishGameIdsInfo(memberId) {
        return request({
            url: '/gmmallmember/memberwish/getWishGameIds/' + memberId,
            method: 'get'
        })
    }

}